<?php $this->beginBlock('main'); ?>
<div class="pub-w login-head">
	<div class="head-logo">
        <a href="/"><img src="/pub/skin/frontend/default/pic/logo-Guide.gif" /></a>
	</div>
</div>
<?php echo $this->loadTemplate(DP_DESIGN.'frontend'.DS.'default'.DS.'block'.DS.'message'); ?>
<script>
    function checkform(form1){
		if(form1.username.value.length == 0){
			alert("<?php echo $this->__('message.username_required')?>");
			form1.username.focus();
			return false;
		}
		if(form1.password.value.length == 0){
			alert("<?php echo $this->__('message.password_required')?>");
			form1.password.focus();
			return false;
		}
		if(form1.validatecode.value.length == 0){
			alert("<?php echo $this->__('message.validate_code_required')?>");
			form1.validatecode.focus();
			return false;
		}		
    }
</script>
<div class="pub-w login-guide">
	<div class="guide dl2">
		<dl>
			<dt><label></label></dt>
			<dd>
				<form name="login_form" method="post" action="<?php echo $this->buildUrl('*/*/login/index')?>" onsubmit="return checkform(this)">
					<ul>
						<li><label><?php echo $this->__('system.label.username')?>锛�/label><input type="text" name="username" /></li>
						<li><label><?php echo $this->__('system.label.password')?>锛�/label><input type="password" name="password" /></li>
						<li><label><?php echo $this->__('system.label.validate_code')?>锛�/label><input type="text" name="validatecode"/></li>
						<li><label>&nbsp;</label><?php echo $this->validateCode()?>
						<input type="button" class="imgcode" onclick="this.form.validatecodename.src += '?';" title="<?php echo $this->__('message.charge_validate_code') ?>" value="<?php echo $this->__('button.refresh') ?>">
						</li>
						<li><label>&nbsp;</label><button type="submit"><?php echo $this->__('button.login')?></button></li>
					</ul>
				</form>
			</dd>
		</dl>
	</div>
</div>
<?php 
$this->endBlock();
echo $this->extend(DP_DESIGN.'frontend'.DS.'default'.DS.'template'.DS.'base');
